package br.com.ordersys.framework.db.metadata;

public class FieldMetadata {
	private String name;
	private String description;
	private String expCalc;
	private int dataType;
	private int calcType;
	private int pkOrder;
	private int size;
	private int decDigits;
	private boolean nullable;
	private int jdbcType;
	private boolean generatedKey;

	public static interface TYPE {
		int INTEGER = 0;
		int DECIMAL = 1;
		int CHARACTER = 2;
		int DATE = 3;
		int DATE_TIME = 4;
		int LONG_CHAR = 5;
		int LONG_BINARY = 6;
	}

	public static interface CALC {
		int NONE = 0;
		int SQL = 1;
		int SCRIPT = 2;
	}

	public FieldMetadata(String name, String description, int dataType) {
		super();
		this.name = name;
		this.description = description;
		this.dataType = dataType;
	}

	public String getExpCalc() {
		return expCalc;
	}

	public void setExpCalc(String expCalc) {
		this.expCalc = expCalc;
	}

	public int getCalcType() {
		return calcType;
	}

	public void setCalcType(int calcType) {
		this.calcType = calcType;
	}

	public int getPkOrder() {
		return pkOrder;
	}

	public void setPkOrder(int pkOrder) {
		this.pkOrder = pkOrder;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public int getDataType() {
		return dataType;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public int getDecDigits() {
		return decDigits;
	}

	public void setDecDigits(int decDigits) {
		this.decDigits = decDigits;
	}

	public boolean isNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public int getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(int jdbcType) {
		this.jdbcType = jdbcType;
	}

	public boolean isGeneratedKey() {
		return generatedKey;
	}

	public void setGeneratedKey(boolean generatedKey) {
		this.generatedKey = generatedKey;
	}

}
